<template>
  <el-icon :size="size" :color="color">
    <component :is="icon" />
  </el-icon>
</template>

<script lang="ts">
export default { name: 'Icon' };
</script>
<script setup lang="ts">
defineProps<{ size?: number; color?: string; icon: unknown }>();
</script>
